import http from "@/http";
import { CommentListParams}from "./commentModel"


// 删除评论
export const deleteCommentApi = (commentId: number) => {
  return http.delete(`/api/comment/delete/${commentId}`);
};

// 获取评论列表（分页+条件查询）
export const getCommentListApi = (params: CommentListParams) => {
  return http.get("/api/comment/getList",  params );
};